package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

public class UserCreditPoints extends DataObject {

    /**
     * 用户id
     */
    private long userId;

    /**
     * 不良积分
     */
    private long creditPoints;

    /**
     * 封禁时间
     */
    private long bannedTime;

    /**
     * 最后重置时间
     */
    private long lastResetTime;

    public UserCreditPoints() {

    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getCreditPoints() {
        return creditPoints;
    }

    public void setCreditPoints(long creditPoints) {
        if (this.creditPoints != creditPoints) {
            this.creditPoints = creditPoints;
            setUpdateOption();
        }
    }

    public long getBannedTime() {
        return bannedTime;
    }

    public void setBannedTime(long bannedTime) {
        if (this.bannedTime != bannedTime) {
            this.bannedTime = bannedTime;
            setUpdateOption();
        }
    }

    public long getLastResetTime() {
        return lastResetTime;
    }

    public void setLastResetTime(long lastResetTime) {
        if (this.lastResetTime != lastResetTime) {
            this.lastResetTime = lastResetTime;
            setUpdateOption();
        }
    }
}
